﻿
@{
    ViewBag.Title = "DocFile";
    Layout = "~/Views/Shared/DocInfos.cshtml";
}
<link href="~/Content/bootstrap.css" rel="stylesheet" />
<div style="margin:0 auto; width:800px;">
    <h3>体检项目及套餐数据导入</h3>
    <div style="width:788px; height:160px; background-color:#ddd2d2;">
        <form action="/DocInfos/DocFile" method="post" enctype="multipart/form-data">
            <p>上传的文件类型：<select class="form-control" style="width:200px;"><option value="">请选择文件类型</option><option value="1">体检项导入</option><option value="2">套餐导入</option></select></p>
            <p><input type="file" name="Excelname" value="浏览" />为选择文件</p>
            <p><input type="submit" name="name" value="文件上传" class="btn btn-primary"  /></p>
        </form>        
    </div>
    <div>
        <table style="width:800px; line-height:30px;">
            <thead>
                <tr style="font-size:18px;border-bottom:2px solid #827e7e;">
                    <td>操作</td>
                    <td>文件名</td>
                    <td>文件路径</td>
                </tr>
               
            </thead>
            
                    
            @foreach (var item in ViewBag.list)
            {
                <tr style="border-bottom:1px solid #b5a3a3;">
                    <td><a onclick="DaoRu()">导入</a></td>
                    <td>@(item.T_File_Name)</td>
                    <td>@item.T_File_Url</td>
                </tr>
            }
        </table>
    </div>
    <div>

    </div>

</div>
<script>
    function DaoRu()
    {
        alert("导入成功");
        location.href = "/DocInfos/DocFile";
    }

</script>
